package org.timeismoney.payment.service;

import java.math.BigDecimal;
import java.util.List;

import org.timeismoney.payment.exception.BizException;
import org.timeismoney.payment.model.ItemPaymentDetail;
import org.timeismoney.payment.model.PaymentRecord;

public interface PaymentRecordService extends BaseService<PaymentRecord, Integer> {

	public void finish(String paymentRecordNo, BigDecimal cost) throws BizException;

	public void createOrder(List<PaymentRecord> records, PaymentRecord finRecord);

	BigDecimal getTotalPaySuccessByStuNoAndYearNo(String stuNo, Integer yearNo);

	void deleteByStuNo(String stuNo);
	
	void deleteByItemPaymentNo(int itemPaymentNo);

	public void deleteBySchoolYearNo(Integer schoolYearNo);

	public void deleteByItemNo(Integer itemNo);
	
	public List<PaymentRecord> findPaymentRecordByItemPaymentDetail(ItemPaymentDetail detail);

}
